<!doctype html>
<html ng-app>
<head>
    <script src="test/angular.js"></script>
    <script>
        function EmployeeController($scope) {
            $scope.department = 'Engineering';
            $scope.employee = {
                name: 'Joe the Manager',
                reports: [
                    {name: 'John Smith', "department": 1111},
                    {name: 'Mary Run'}
                ]
            };
        }
    </script>
</head>
<body>
<div ng-controller="EmployeeController">
    Manager: {{employee.name}} [ {{department}} ]<br>
    Reports:
    <ul>
        <li ng-repeat="employee in employee.reports">
            {{employee.name}} [ {{employee.department}} ]
        </li>
    </ul>
    <hr>
    {{greeting}}
</div>
</body>
</html>
